#ifndef LED_H
#define LED_H

typedef enum
{
    LED_STATE_OFF = 0,    // 常灭
    LED_STATE_ON,         // 常亮
    LED_STATE_BLINK_SLOW, // 慢闪
    LED_STATE_BLINK_FAST, // 快闪
} LEDState_t;

typedef enum
{
    LED_ID_STATE = 0, // 电源指示灯
    LED_ID_SIGNAL,    // 信号指示灯
    LED_ID_COUNT
} LEDID_t;

typedef enum
{
    LED_COLOR_RED = 0,
    LED_COLOR_GREEN,
    LED_COLOR_COUNT
}LEDColor_t;

void LEDStateSet(LEDID_t id, LEDColor_t color, LEDState_t state);
void LEDPoll(void);
void LEDInitialize(void);
#endif
